package fw.asmx.appstoper.utils;

import android.content.Context;
import android.content.SharedPreferences;

public class SPOperat
{
    private static SharedPreferences sp;

    public static boolean readSPBool(Context c,String key)
    {
        sp=c.getSharedPreferences("StopList",Context.MODE_PRIVATE);
        return sp.getBoolean(key,false);
    }

    public static void writeSPBool(Context c,String key,boolean value)
    {
        sp=c.getSharedPreferences("StopList",Context.MODE_PRIVATE);
        sp.edit().putBoolean(key,value).apply();
    }
}